/**
 * This example demonstrates the Toolbar's two different modes of handling overflow:
 *
 * - "menu": buttons that don't fit on the toolbar are rendered into an overflow menu
 * - "scroller": scroller buttons are rendered on either side of the toolbar for scrolling
 * overflowing items into view.
 */
Ext.define('DragonApp.view.white.AccountBar', {

    extend: 'Ext.toolbar.Toolbar',
    xtype: 'whitebar_account',

    items: [{
        xtype: 'button',
        text: '账号白名单',
        tooltip: '添加',
        itemId: 'newaccount',
        handler: 'onAddAccount',
        iconCls: 'x-fa fa-plus-square-o',
        width: 120
    }, {
        xtype: 'button',
        text: '批量删除',
        tooltip: '批量删除',
        itemId: 'batdeleteAccount',
        handler: 'onBatDelete',
        glyph: 'xf014@FontAwesome',
        width: 100
    }, '->', {
        xtype: 'textfield',
        name: 'searchfield',
        itemId: 'searchfield_account',
        emptyText: '请输入账号筛选关键字',
        listeners: {
            specialKey: 'onTextFieldSpecialKeySearch'
        }
    }, {
        text: '搜索',
        xtype: 'button',
        tooltip: '搜索',
        itemId: 'searchbtn_account',
        iconCls: 'fa fa-search fa-lg buttonIcon',
        listeners: {
            click: 'onAccountSearch'
        }
    }]
});